package com.tank.dwr;

import org.directwebremoting.annotations.RemoteMethod;
import org.directwebremoting.annotations.RemoteProxy;
import org.springframework.beans.factory.annotation.Autowired;

import com.tank.service.ImageService;

@RemoteProxy(name="testDwrController")
public class TestDwrController {
	@Autowired
	private ImageService imageService;
	@RemoteMethod  
    public int getAddress() throws Exception {  
        return 1;  
    }  
      
    @RemoteMethod  
    public void printAddress() {  
        System.out.println("Printing");  
    }  
}
